package com.spark.userservice.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.basecommon.entity.user.UmsPermission;
import com.spark.userservice.mapper.UmsPermissionMapper;
import com.spark.userservice.service.IUmsPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 后台用户权限表 服务实现类
 * </p>
 *
 * @author fuqiang
 * @since 2020-09-29
 */
@Service
public class UmsPermissionServiceImpl extends ServiceImpl<UmsPermissionMapper, UmsPermission> implements IUmsPermissionService {

    @Autowired
    private UmsPermissionMapper umsPermissionMapper;

    @Override
    public Set<UmsPermission> findPermissionByRoleIds(List<Long> roleIds) {
        return umsPermissionMapper.findPermissionByRoleIds(roleIds);
    }
}
